package service.impl;/*
 *徐韬
 *2021/9/20
 *13:14
 */

import Dao.empManagerDao;
import Dao.impl.empManagerDaoimpl;
import Util.DruidUitl;
import entity.empManager;
import service.empManagerService;

public class empMangagerServiceImpl implements empManagerService {
    @Override
    public empManager login(String userName, String passWord) {
        empManagerDao managerDao = new empManagerDaoimpl();
        empManager empmanager = managerDao.select(userName);
        if(empmanager != null){
            if(empmanager.getPassWord().equals(passWord)){
                return empmanager;
            }
        }
        DruidUitl.close();
        return null;

    }
}
